package gov.chinatax.ctcps.logic.yszb;
import java.util.*;
import org.springframework.context.*;
import gov.chinatax.ctcps.logic.xtgl.interfaces.YszbMngBOI;
import org.springframework.context.support.FileSystemXmlApplicationContext;
import gov.chinatax.ctcps.formbean.form.YszbMxExtForm;
import gov.chinatax.ctcps.formbean.form.YszbZtExtForm;
public class MainTest {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
        String[] sPaths = {"D:/vss/yxg/ctcps/src/CTCPS/web/WEB-INF/applicationContext-hibernate.xml","D:/vss/yxg/ctcps/src/CTCPS/web/WEB-INF/applicationContext-service.xml","D:/vss/yxg/ctcps/src/CTCPS/web/WEB-INF/applicationContext-baseservice.xml","D:/vss/yxg/ctcps/src/CTCPS/web/WEB-INF/applicationContext-basestruts.xml"};
		ApplicationContext ctx=new FileSystemXmlApplicationContext(sPaths);
		
		YszbMngBOI yszbMngBO=(YszbMngBOI)ctx.getBean("yszbMngBO");
		yszbMngBO.getAllYszbByNd("2006");
		
		//YszbBOI yszb=(YszbBOI)ctx.getBean("yszbBO");
		YszbZtExtForm yszbForm=new YszbZtExtForm();
		yszbForm.setNd("2006");
		//yszb.saveNewZt(yszbForm);
		Collection col=null;//yszb.getAllByDwAndNd("1","2006","");
		Iterator ver=col.iterator() ;
		while(ver.hasNext()){
			YszbZtExtForm form=(YszbZtExtForm)ver.next() ;
			System.out.println("Cfmc"+form.getCfmc());
		}
		ArrayList list=null;
		//yszb.getMxByZtID("EAEA29C42F002A723C89C639F366DD81");
		Iterator ver1=list.iterator();
		ArrayList list1=(ArrayList)ver1.next();
		Iterator ver2=list1.iterator();
		while(ver2.hasNext()){
			YszbMxExtForm mx=(YszbMxExtForm)ver2.next();
		    System.out.println(mx.getKmMc());	
		}
		

	}
	
	

}
